package com.murdock.tools.jmx;

public class ServerMonitor implements ServerMonitorMBean {

    private final ServerImpl target;

    public ServerMonitor(ServerImpl target){
        this.target = target;
    }

    public long getCurrentTime() {
        return System.currentTimeMillis() - target.startTime;
    }

}
